module.exports = async (req, res, next) => {
  let sessionUser = req.session.user;
  if (sessionUser) {
    return res.redirect("/");
  }

  next();
};
